/* @CHARSET "UTF-8"; */
*{
	padding: 0px;
	margin: 0px;
	border: 0px;
}

/* 导航栏 ------------------------------------------ */
#top #nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

#top #nav ul li {
    display: inline;
}

#top #nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#top #nav ul li a:hover {
    background-color: #004d4d;
}


/* 侧边栏 ------------------------------------------ */
#middle #left {
	width: 30%;
	height: 100%;
	background-color: #d4e4ce;
	float: left;
	margin-left: 10px;
	margin-top: 10px;
	border-radius: 15px;
	padding: 10px;
	box-sizing: border-box;
}

#left #up, #left #down {
	width: 100%;
	height: 45%;
	background-color: #b7d5ae;
	float: left;
	margin: 10px 0;
	border-radius: 15px;
	padding: 10px;
	box-sizing: border-box;
	border:1px solid #FFFFFF
}


/* 主内容区 ---------------------------------------- */
#middle #right {
	width: 65%;
	height: 90%;
	background-color: #add5a2;
	float: right;
	margin-right: 10px;
	margin-top: 30px;
	border-radius: 20px;
	padding: 0px 15px 15px 15px;
	box-sizing: border-box;
	border: 1px solid #FFFFFF;
	font-family: 'Microsoft YaHei', sans-serif;
	
	/* line-height: 2; */
	color: #333;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
#middle #right p {
	line-height: 2 !important;
    font-size: 15px !important;
}
/* 新闻标题样式 ------------------------------------ */
.news-title {
	background-color: #ffffcc;
	padding: 5px;
	border-radius: 5px;
	margin-bottom: 10px;
    font-size: 13px;
    font-weight: bold;
}

#up {
    /* 保持现有的 height 属性不变 */
    position: relative; /* 确保子元素的定位相对于 #up */
    overflow: hidden; /* 隐藏超出 #up 边界的内容 */
}


/* 新闻列表 ---------------------------------------- */
#news ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    height: 140px;
    overflow: hidden;
    border-radius: 5px;
}

#news ul li a:hover {
    text-decoration: underline;
    background-color: #d4e4ce;
}

#news ul li {
    padding: 7px 12px;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* 控制显示的行数 */
    line-clamp: 3; /* 定义标准属性以实现兼容性 */
}

#news ul li:last-child {
    border-bottom: none;
}

#news ul li a {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
}

.more-link {
    padding: 7px 10px;
    border-bottom: 1px solid #eee;
    margin-top: 0;
    font-size: 14px;
    line-height: 1.4;
    display: block;
}

.more-link a {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
}

.more-link a:hover {
    text-decoration: underline;
    background-color: #d4e4ce;
}


/* 主内容区 ---------------------------------------- */
#middle #right {
    overflow: hidden;
    position: relative;
}

.profile-list {
    font-size: 14px;
    list-style: none;
    padding: 0 15px;
    margin: 10px 0;
    line-height: 1.8;
}

.wechat-qr {
    position: relative;
    right: auto;
    bottom: auto;
    width: 120px;
    margin: 15px 20px 0 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#down ul{
    list-style: none;
    padding: 2px 15px;
    margin: 10px 0;
    line-height: 1.8;
    font-size: 14px;
}
#down ul li {
    font-size: 14px;
}

.pro {
    margin-top: 15px;
}

.protu img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}



/* 产品推荐区域 ---------------------------------- */
.pro ul {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    list-style: none;
    justify-content: space-between;
}

.pro-item {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(20% - 15px); /* 每行5个商品 */
    max-width: calc(20% - 15px);
    margin-bottom: 20px;
    align-items: center;
}

.protu {
    width: 19%;
    text-align: center;
    display: inline-block;
    margin: 0.5%;
    box-sizing: border-box;
}

.protuku {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.protuku img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    
}

.prozi {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
}

.prozi a {
    color: #2c662d;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prozi a:hover {
    color: #3a8b3c;
    text-decoration: underline;
}

.prozi:hover img {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

#down {
    position: relative;
}

.wechat-qr {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 100px;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 产品详情页样式 */
.product-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-image {
    flex: 0 0 300px;
    margin: 20px 0;
}

.product-image img {
    width: 300px;
    height: 300px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    object-fit: cover;
}

.product-description {
    flex: 1;
    padding: 10px 0 0;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 20px;
    width: 80%;
    text-align: center;
}

/* 返回列表按钮样式 */
.back-to-list {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 8px 15px;
    background-color: #9ab892;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.back-to-list:hover {
    background-color: #7da375;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* 分页导航样式 -------------------------------------- */
.pagination {
    font-size: 14px;
    margin: 15px 0;
    padding: 5px 0;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.pagination a, .pagination .total-pages {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    background-color: #9ab892;
    border-radius: 3px;
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.pagination a {
    text-decoration: none;
}

.pagination a:hover {
    background-color: #9ab892;
}

.pagination a.current {
    background-color: #7da375;
    cursor: default;
}

.pagination .back-to-first {
    margin-left: 5px;
}
